package nit.wave.service;

import java.util.List;

import nit.wave.dao.BiaobaiDao;
import nit.wave.model.Biaobai;

public class BiaobaiService {

	public int addBiaobai(Biaobai biaobai) {

		try {

			int resutlt = BiaobaiDao.insertBiaobai(biaobai);

		} catch (Exception e) {
			e.printStackTrace();
		}

		return 0;
	}

	public List<Biaobai> getBiaobai(int type, int start, int length) {
		List<Biaobai> biaobais = null;
		try {
			biaobais = BiaobaiDao.findBiaobai(type, start, length);
		} catch (Exception e) {
			e.printStackTrace();
		}

		return biaobais;

	}

}
